<section id="main-content">
	<section class="wrapper">
		<ol class="breadcrumb">
			<li><a href="{:Url('Index/index')}"><span
					class="glyphicon glyphicon-home" aria-hidden="true"
					style="color: #f00"></span></a></li>
			<li class="active">喊话列表</li>
		</ol>
		<div class="table-agile-info">
			<a href="{:Url('Data/addNotice')}" type="button" class="btn btn-danger">添加喊话内容</a>
			<div class="panel panel-default">
				<div>
					<form action="" method="post" class="jqtransform" enctype="multipart/form-data">
					<table class="table" >
						<tbody>
							{empty name='list'}
							<tr>
								<td colspan='2' style="text-align: center">暂无记录<br>
									<br> <a href="{:Url('Index/index')}"><button type="button"
											class="btn btn-danger">
											<font>返回</font>
										</button></a></td>
							</tr>
							{/empty}
								{volist name="list" id="vo"}
									<tr data-expanded="true">
										<td>
											<div class="checkbox">
												<label>
													<input type="checkbox" name="text[]" {if condition="$vo['state'] eq 1"}checked{/if}  value="{$vo['id']}">
												    {$vo['text']}
												</label>
											</div>
										</td>
										<td>
											<a href="{:Url('Data/delNotice',array('id'=>$vo['id']))}">删除</a>
										</td>
									</tr>
								{/volist}
						</tbody>
					</table>
					{if condition="$listType eq 1"}
						<input type="hidden" name="state" value="0">
						<button type="submit" class="btn btn-warning">停止喊话</button>
					{else/}
						<input type="hidden" name="state" value="1">
						<button type="submit" class="btn btn-danger">开始喊话</button>
					{/if}
					</form>
				</div>
			</div>
		</div>
	</section>